<div class="maintop">
    当前位置：系统管理员分组
    <a href="javascript:;" action="<?=$basepath?>_add" class="mainFrame button icon-plus">添加权限控制器</a>
    <a href="javascript:;" action="<?=$basepath?>" class="mainFrame button">刷新</a>
    <? if(ISDEBUG){ ?>
        <a href="javascript:$('.debuginfo').toggle();" class="button">调试信息</a>
    <? } ?>
</div>
<div id="mainbody">
    <table width="100%" class="tablist">
        <tr class="trbg"><th>系统分组名称</th><th>权限编号明细</th><th>操作</th></tr>
        <? foreach($datas as $v){ ?>
            <tr>
                <td class="tdleft icon-user"><?=$v['title']?></td>
                <td class="tdleft" title="<?=$v['auths']?>"><div style="max-width:760px;overflow:hidden;height:25px;text-overflow:ellipsis;white-space: nowrap;"><?=$v['auths']?></div></td>
                <td width="115">
                    <a action="<?=$basepath?>_delete?id=<?=$v['id']?>" title="删除" class="mainFrame button icon-trash-2" href="javascript:;"></a>
                    <a action="<?=$basepath?>_edit?id=<?=$v['id']?>" title="编辑" class="mainFrame button icon-edit" href="javascript:;"></a>
                    <a action="<?=$basepath?>_setting?id=<?=$v['id']?>" title="设置权限" class="mainFrame button icon-shield" href="javascript:;"></a>
                </td>
            </tr>
        <? } ?>
    </table>
    <? require VIEW.'/page.view.php' ?>
</div>
<script type="text/javascript">
    function beforeSearchForm(){
        var _key = this.sKey.value;
        if(_key.length<=0){
            throw '搜索关键字不能为空';
        }
    }
    function searchForm(self, _html, data){
        $("#iframe").html(_html);
    }
</script>
